//变量创建
//定义悬浮窗、画布
var win = floaty.rawWindow(
    <frame gravity="center">
        <canvas id="board" w="auto" h="auto" />
    </frame>
);
//定义画笔
var paint = new Paint();
//设置画笔和悬浮窗
win.setTouchable(false); //悬浮窗不可触摸
win.setSize(-1, -1); //-1为铺满屏幕
var img = images.read("./res/五条悟.png")//读图
var b = images.toBytes(img);//将图片转换为字节数组
var bm = android.graphics.BitmapFactory.decodeByteArray(b, 0, b.length);//字节数组转bitmat
//画布监听
win.board.on("draw", (canvas) => {
    canvas.drawBitmap(bm, 50, 50, paint);
})
setInterval(() => {
}, 80000);